package com.xbongbong.paas.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import java.io.Serializable;

/**
 * @author: wufeng
 * @date: 2018/12/24 16:41
 * @desrcption: 业务规则设置
 */
@Getter
@Setter
@ToString
public class BusinessRulesPoJo implements Serializable {
    private static final long serialVersionUID = 2028164834861273796L;


    private String uuId;

    private Long businessRuleId;

    /**
     * 生效时规则
     */
    @Valid
    private ActiveRulePoJo activeRule;

    /**
     * 失效时规则
     */
    @Valid
    private ActiveRulePoJo inactiveRule;

    private Integer priority;


}
